package boot.service.impl;

import boot.domain.Product;
import boot.dao.ProductDao;
import boot.domain.ProductDto;
import boot.service.IProductService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author enthalpy
 * @since 2022-10-28
 */
@Service
public class ProductServiceImpl extends ServiceImpl<ProductDao, Product> implements IProductService {
    @Autowired
    ProductDao productDao;

    // 查供应商
    public List<ProductDto> getSupplierList(){
        return productDao.findAllProductVo();
    }
}
